package com.educatioin.manage.web.pointreward.repository;

import com.educatioin.manage.web.pointreward.po.PointRewardOrderPo;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by zhangchen on 2018/3/5.
 */
@RepositoryRestResource(collectionResourceRel = "pointRewardOrderRepository", path = "pointRewardOrderRep")
public interface PointRewardOrderRepository extends JpaSpecificationExecutor<PointRewardOrderPo>, PagingAndSortingRepository<PointRewardOrderPo, Long> {
    List<PointRewardOrderPo> findByPhone(String phone);
    PointRewardOrderPo findByOrderCode(String orderCode);
}
